module.exports = function (app) {
    const { router,middleware } = app;
   
    const prefix = "/api/topic-lesson";
    const controller = app.controller.topicLesson;

  
    router.get(prefix + "/list", controller.list);
    router.post(prefix + "/create",  middleware.auth(), controller.create);
    router.post(prefix + "/update",  middleware.auth(), controller.update);
    router.post(prefix + "/delete",  middleware.auth(), controller.delete);  


    router.post(prefix + "/startExam",  middleware.auth(),  controller.startExam);
    router.post(prefix + "/endExam",  middleware.auth(),  controller.endExam);

    router.post(prefix + "/checkIsVip",  middleware.auth(),  controller.checkIsVip);

    router.get(prefix + "/getUserStudyDuration",  middleware.auth(),  controller.getUserStudyDuration);
    router.get(prefix + "/:id", controller.id);

  };